Evaluating Message Passing Control Techniques in Smalltalk
نویسنده
چکیده
In a language like Smalltalk in which objects communicate only via message passing, message passing control is a fundamental tool for the analysis of object behavior (trace, spying) or for the definition of new semantics (asynchronous messages, proxy,...). Different techniques exist, from the well known approach based on the specialization of the doesNotUnderstand: method to the exploitation the method lookup algorithm done by the virtual machine. Until now no comparison between these techniques has been made. In this article we compare the different techniques taking into account the reflective aspects used, the scope, the limit and the cost of the control.
منابع مشابه
Dynamic Type Inference to Support Object-Oriented Reenginerring in Smalltalk
Type information is a crucial information to support object-oriented reengineering. In a dynamically typed language like Smalltalk standard static type inference is a complex and heavily computational task. In this paper, we report how we use message passing control and compiler extension to support dynamic inference type in Smalltalk. 1 Object-Oriented Reengineering Goals and Needs In the cont...
متن کاملModular Verification of Object-Oriented Programs with Subtypes
Object-oriented programming languages like Smalltalk-80 have a message passing mechanism that allows code to work on instances of many different types. Techniques for the formal specification of such polymorphic functions and abstract types are described, as well as a logic for verifying programs that use message passing but not object mutation or assignment. The reasoning techniques formalize ...
متن کاملActalk: A Testbed for Classifying and Designing Actor Languages in the Smalltalk-80 Environment
This paper describes a system for designing and classifying actor languages. This system, named Actalk, which stands for actors in Smalltalk-80, is based on some minimal kernel introducing actors into Smalltalk-80. The Actalk kernel extends passive and sequential objects activated by synchronous message passing into active and concurrent actors communicating by asynchronous message passing. Thi...
متن کاملTaming Message Passing: Efficient Method Look-Up for Dynamically Typed Languages
Method look-up for dynamically typed object-oriented languages, such as SMALLTALK-80 or OBJECTIVE-C, is usually implemented by a cached inheritance search. Unfortunately, this technique is slow. A selector-indexed dispatch table implementation speeds up messages to within 10% of the speed of a statically typed language such as C++. We present a fast technique for generating compact selector-ind...
متن کاملModular Veriication of Object-oriented Programs with Subtypes Modular Veriication of Object-oriented Programs with Subtypes List of Figures 1.1 the Type Speciication
Object-oriented programming languages like Smalltalk-80 have a message passing mechanism that allows code to work on instances of many diierent types. Techniques for the formal speciication of such polymorphic functions and abstract types are described, as well as a logic for verifying programs that use message passing but not object mutation or assignment. The reasoning techniques formalize in...
متن کامل